import $http from '../http.js'

const get_label = (data) => {
	return $http({
		url: 'get_label',
		data
	})
}

const get_list = (data) => {
	return $http({
		url: 'get_list',
		data
	})
}

const update_likes = (data) => {
	return $http({
		url: 'update_like',
		data
	})
}

const get_search = (data) => {
	return $http({
		url: 'get_search',
		data
	})
}

const update_label = (data) => {
	return $http({
		url: 'update_label',
		data
	})
}

const get_detail = (data) => {
	return $http({
		url: 'get_detail',
		data
	})
}

const update_comment = (data) => {
	return $http({
		url: 'update_comment',
		data
	})
}

const get_comments = (data) => {
	return $http({
		url: 'get_comments',
		data
	})
}

const update_author = (data) => {
	return $http({
		url: 'update_author',
		data
	})
}

const update_thumbsup = (data) => {
	return $http({
		url: 'update_thumbsup',
		data
	})
}

const get_follow = (data) => {
	return $http({
		url: 'get_follow',
		data
	})
}

const get_author = (data) => {
	return $http({
		url: 'get_author',
		data
	})
}

const get_user = (data) => {
	return $http({
		url: 'get_user',
		data
	})
}

const get_my_article = (data) => {
	return $http({
		url: 'get_my_article',
		data
	})
}

const update_feedback = (data) => {
	return $http({
		url: 'update_feedback',
		data
	})
}

export {
	get_label,
	get_list,
	update_likes,
	get_search,
	update_label,
	get_detail,
	update_comment,
	get_comments,
	update_author,
	update_thumbsup,
	get_follow,
	get_author,
	get_user,
	get_my_article,
	update_feedback
}